package com.lswms.service;

import com.lswms.common.service.CrudService;
import com.lswms.dto.YnLotteryDTO;
import com.lswms.dto.vo.resp.LotteryInfoResp;
import com.lswms.entity.YnLotteryEntity;
import com.lswms.entity.YnUserEntity;

/**
 * 抽奖表
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2020-05-06
 */
public interface YnLotteryService extends CrudService<YnLotteryEntity, YnLotteryDTO> {

	/**
	 * 添加抽奖信息
	 * @param entity
	 */
	public void createLottery(YnLotteryEntity entity);
	/**
	 * 抽奖信息
	 * @param ynuser
	 * @return
	 */
	public LotteryInfoResp lotteryInfo(YnUserEntity ynuser);
	/**
	 * 抽奖
	 * @param ynuser
	 * @return
	 */
	public void lottery(YnUserEntity ynuser);

}